package com.bdqn.t330.ch06.service;

import com.bdqn.t330.ch06.dao.UserDao;
import com.bdqn.t330.ch06.dao.UserDaoImp;
import com.bdqn.t330.ch06.entity.User;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImp implements UserService {

    //UserDao userDao = new UserDaoImp();
    @Resource
    UserDao userDao;

    @Override
    public void saveService(User user) {
        userDao.save(user);
    }
}
